Last updated on
配置Beyla监控对象
本文档用于配置 APO-one-agent 中 Beyla 组件的监控对象,参考 Grafana Beyla 官方配置文档。
info
需要APO版本大于等于 v0.7.0
Kubernetes 环境中配置 Beyla 监控黑名单
在您部署 APO-one-agent 完成后,可以修改 APO-one-agent 中的 Beyla 黑名单,执行下方命令编辑 APO-one-agent 的 Daemonset 资源
kubectl edit ds apo-one-agent -n apo
找到其中名为grafana-beyla
的 container,并修改其环境变量filter_go_process
,将想要过滤的对象进程名以逗号分隔添加
......(省略上下文)
- name: grafana-beyla
image: registry.cn-hangzhou.aliyuncs.com/kindlingx/apo-beyla:v1.8.4-1
ports:
- name: metrics
hostPort: 9090
containerPort: 9090
protocol: TCP
env:
- name: filter_go_process
value: >-
sleep,kube,jaeger-agent,prometheus,promtail,grafana-agent,calico,apisix,kube,chaos-,logserver,containerd,image-cri-shim,registry,deepflow,grafanagpx_,docker,runc,lvscare,nginx-ingress-c,otelcol-contrib,node_exporter,otel-go-instrum,otelcol,vmagent-prod,metrics-server,apm-server,elastic-operato,flanneld,flagd-build,dlv,gopls,agent-linux,all-in-one-linu,coredns,etcd,kubectl,kubelet,kindnetd,local-path-prov,camera,ilogtail,management,metadata-provid,meta-agent,originx-gc-agen,originx-sdk-aut,pinger,portal,root-cause-infe,inspector,odiglet,odigosotelcol,exporter,ndm,ndo,provisioner-loc,catalog,olm,xenon,victoria-metric,camera,nginx,alloy,alertmanager,grafana,collector-linux,apo-backend,vector,clickhouse-operator,clickhouse-server,jaeger-remote-storage,apiserver,java,clickhouse,victoria-metrics-prod,node-agent,python,vmalert-prod,query-linux,odigos-instrumentor
- name: NODE_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: BEYLA_CONFIG_PATH
value: /etc/beyla/config/beyla-config.yml
- name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
value: http://$(NODE_IP):4317
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: grpc
......
保存退出后,等待 APO-one-agent 重启即可。